package com.example.smssender;

import java.io.Serializable;

/**
 * 联系人数据模型
 */
public class Contact implements Serializable {
    private String id;
    private String name;
    private String phoneNumber;

    public Contact() {
        this.id = String.valueOf(System.currentTimeMillis());
    }

    public Contact(String name, String phoneNumber) {
        this.id = String.valueOf(System.currentTimeMillis());
        this.name = name;
        this.phoneNumber = phoneNumber;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}
